﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="message">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="to" type="xs:string" />
        <xs:element name="from" type="xs:string" />
        <xs:element name="body" type="xs:string" />
      </xs:sequence>
      <xs:attribute name="version" type="xs:decimal" use="optional" default="1.0"/>
      <xs:attribute name="type" type="xs:string" use="optional" default="InstantMessage"/>
      <xs:attribute name="chatid" type="xs:string" use="optional" default ="" />
    </xs:complexType>
  </xs:element>
</xs:schema>